/**
 * 
 */
package com.jinmei.jerplogin;

import org.w3c.dom.Node;

import com.jinmei.remote.response.BaseResponse;
import com.jinmei.remote.util.XMLUtils;

//import com.jinmei.mail.util.JSONUtils;

/**
 * @author richard
 *
 */
public class JERPLogoutResponse extends BaseResponse {
	
	@Override
	protected void setBody(String body) throws Exception {
		this.body = body;
	}
	
	public String getLogoutStatus() {
		Node logoutStatus = XMLUtils.getNodeByTagName(this.body, "code");
		if (logoutStatus != null) {
			return logoutStatus.getTextContent();
		}
		return null;
    }
	
	public String getLogoutMsg() {
		Node loginMsg = XMLUtils.getNodeByTagName(this.body, "message");
		if (loginMsg != null) {
			return loginMsg.getTextContent();
		}
		return null;
    }
    
}
